package com.domain.vote;

import lombok.*;
import org.checkerframework.checker.units.qual.C;
import org.springframework.data.annotation.Id;
import org.springframework.data.cassandra.core.cql.Ordering;
import org.springframework.data.cassandra.core.cql.PrimaryKeyType;
import org.springframework.data.cassandra.core.mapping.*;

import java.io.Serializable;
import java.util.Map;
import java.util.UUID;

@Table("article")
@ToString(callSuper = false)
@Data
@EqualsAndHashCode(callSuper=false)
@Builder(toBuilder = true)
@NoArgsConstructor
@AllArgsConstructor
public class Article implements Serializable {
    private  static final long serialVersionUID = 42L;;

    @PrimaryKeyColumn(name = "id",ordinal = 1,type = PrimaryKeyType.PARTITIONED)
    private String id;
    private String name;
    private String description;
    private String url;
    private String slug;
    private int score;
    private String authorsName;

}
